/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.z100h.supplychain.purchase.entity;

import java.math.BigDecimal;

import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.core.persistence.DataEntity;

/**
 * 供应链入库单明细
 * @author madara
 * @version 2018-09-20
 */
public class PurchaseOrderItemActual extends DataEntity<PurchaseOrderItemActual> {

	private static final long serialVersionUID = 1L;

	private String skuId; // 产品id

	private Integer num; // 采购数量

	private BigDecimal price; // 单价

	private BigDecimal totalPrice; // 总价

	private String warehouseReceiptId; // 入库单id

	private String skuName;

	public String getSkuName() {
		return skuName;
	}

	public void setSkuName(String skuName) {
		this.skuName = skuName;
	}

	public PurchaseOrderItemActual() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}

	public String getSkuId() {
		return skuId;
	}

	public void setSkuId(String skuId) {
		this.skuId = skuId;
	}

	public PurchaseOrderItemActual(String id) {
		super(id);
	}

	@ExcelField(title = "数量", align = 2, sort = 8)
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	@ExcelField(title = "单价", align = 2, sort = 9)
	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}

	@ExcelField(title = "入库单id", align = 2, sort = 11)
	public String getWarehouseReceiptId() {
		return warehouseReceiptId;
	}

	public void setWarehouseReceiptId(String warehouseReceiptId) {
		this.warehouseReceiptId = warehouseReceiptId;
	}

	/**
	 * @param skuId
	 * @param num
	 * @param price
	 * @param warehouseReceiptId
	 * @param skuName
	 */
	public PurchaseOrderItemActual(String skuId, BigDecimal price, BigDecimal totalPrice, Integer num,
			String warehouseReceiptId) {
		super();
		this.skuId = skuId;
		this.num = num;
		this.price = price;
		this.totalPrice = totalPrice;
		this.warehouseReceiptId = warehouseReceiptId;
	}

}